package top.conangao.cgmall.account.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.conangao.cgmall.account.facade.UserService;
import top.conangao.cgmall.account.facade.request.UserQueryRequest;

/**
 * @author gaoshuang
 */
@RequestMapping("/account/v0/user")
@RestController
@RequiredArgsConstructor
public class UserController {
    private final UserService userService;
    @GetMapping
    public String getUser(@Validated UserQueryRequest request) {
        return userService.getUser(request);
    }
}
